#!/usr/bin/env python
# encoding: utf-8

__author__ = '$zhangbo'
__time__   = '$2013/11/11'

import sys

from tornado.web import Application

import tornado.ioloop
import tornado.web

from jpdog.web.handlers.urls import URL_HANDLERS
from jpdog.web.settings import SETTINGS

class MainBlog(Application):
    def __init__(self):
        Application.__init__(self, URL_HANDLERS, **SETTINGS)


if __name__ == "__main__":
    port = int(sys.argv[1])
    MainBlog().listen(port)
    tornado.ioloop.IOLoop.instance().start()
